package jsu.xxy.coffee3.domain;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.annotation.Nonnull;

/**
 * 点单表
 * @TableName orders
 */
@TableName(value ="orders")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Orders implements Serializable {
    /**
     * 订单编号
     */
//    @TableId(value = "oid" , type = IdType.ASSIGN_ID)
    private Integer oid;

    /**
     * 商品编号
     */
//    @TableId(value = "cid" , type = IdType.ASSIGN_ID)
    private Integer productid;

    /**
     * 数量
     */
    private Integer num;

    /**
     * 糖
     */
    private Integer sugar;

    /**
     * 冰
     */
    private Integer ice;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}